<?php defined('IN_ADMIN') or exit('Access Denied!'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?=$title;?> - SuDingKe.com</title>
<style type="text/css">
div {
    overflow:hidden;
    *display:block;
}
.login_box {
    background:url(<?=STATIC_URL;?>img/admin/login_bg.jpg) no-repeat;
    width:602px;
    height:416px;
    overflow:hidden;
    position:absolute;
    left:50%;
    top:50%;
    margin-left:-301px;
    margin-top:-208px;
}
.login_iptbox {
    bottom:90px;
    _bottom:72px;
    color:#FFFFFF;
    font-size:12px;
    height:30px;
    left:50%;
    margin-left:-280px;
    position:absolute;
    width:560px;
    overflow:visible;
}
.login_iptbox .ipt {
    height:24px;
    width:110px;
    margin-right:22px;
    color:#fff;
    background:url(<?=ADMIN_STATIC_URL;?>images/admin_img/ipt_bg.jpg) repeat-x;
*line-height:24px;
    border:none;
    color:#000;
    overflow:hidden;
}
.login_iptbox label {
    *position:relative;
    *top:-6px;
}
.login_iptbox .ipt_reg {
    margin-left:12px;
    width:46px;
    margin-right:16px;
    background:url(<?=ADMIN_STATIC_URL;?>images/admin_img/ipt_bg.jpg) repeat-x;
*overflow:hidden;
    text-align:left;
    padding:2px 0 2px 5px;
    font-size:16px;
    font-weight:bold;
}
.login_tj_btn {
    background:url(<?=ADMIN_STATIC_URL;?>images/admin_img/login_dl_btn.jpg) no-repeat 0px 0px;
    width:52px;
    height:24px;
    margin-left:16px;
    border:none;
    cursor:pointer;
    padding:0px;
    float:right;
}
.yzm {
    position:absolute;
    background:url(<?=ADMIN_STATIC_URL;?>images/admin_img/login_ts140x89.gif) no-repeat;
    width:140px;
    height:89px;
    right:56px;
    top:-96px;
    text-align:center;
    font-size:12px;
    display:none;
}
.yzm a:link, .yzm a:visited {
    color:#036;
    text-decoration:none;
}
.yzm a:hover {
    color:#C30;
}
.yzm img {
    cursor:pointer;
    margin:4px auto 7px;
    width:130px;
    height:50px;
    border:1px solid #fff;
}
.cr {
    font-size:12px;
    font-style:inherit;
    text-align:center;
    color:#ccc;
    width:100%;
    position:absolute;
    bottom:58px;
}
.cr a {
    color:#ccc;
    text-decoration:none;
}
.ips{
    padding:4px;
    height:24px;
    margin-right:16px;
}
</style>
<script language="JavaScript">
<!--
    if(top!=self) top.location=self.location;
//-->
</script>
</head>

<body onload="javascript:document.myform.username.focus();">
<div id="login_bg" class="login_box">
  <div class="login_iptbox">
    <form action="/admin/login/?t=<?=TIMESTAMP;?>" method="post" name="myform">
      <input type="hidden" name="dosubmit" value="yes" />
      <input name="submit" value="" type="submit" class="login_tj_btn" />
      <select class="ips" onChange="location.href='http://' + this.options[this.options.selectedIndex].value + '.sudingke.com/admin/login'">
        <?php
            $cities = App::getConfig('cities');
            $perfix = App::getCityPerfix();
            foreach($cities as $cid => $city){
                if($cid == $perfix){
                    echo '<option value="'.$cid.'" selected>'.$city[1].'</option>';
                }else{
                    echo '<option value="'.$cid.'">'.$city[1].'</option>';
                }
            }
        ?>
      </select>
      <label>用户名：</label><input name="username" type="text" class="ipt" value="" />
      <label>密码：</label><input name="password" type="password" class="ipt" value="" />
    </form>
  </div>
  <div class="cr">CopyRight (C) 2012 <a href="http://www.sudingke.com" target="_blank">速订客</a>  <a href="http://www.supefun.com" target="_blank">大连凌睿科技有限公司</a> 版权所有 </div>
</div>
</body>
</html>
